package com.wzy.peopleManagement.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.wzy.peopleManagement.commond.AddUserCommond;
	import com.wzy.peopleManagement.commond.DeleteUserByIdCommond;
	import com.wzy.peopleManagement.commond.LoadAllUserCommand;
	import com.wzy.peopleManagement.commond.LoadUserByIdCommond;
	import com.wzy.peopleManagement.commond.LoginCommand;

	public class UserManagementControl extends FrontController
	{
		public static const USER_LOGIN : String = "userLogin";
		public static const ADD_USER : String = "addUser";
		public static const LOAD_ALL_USER : String = "loadAllUser";
		public static const LOAD_USER_BYID : String = "loadUserById";
		public static const DELETE_USER_BYID : String = "deleteUserById";
		public function UserManagementControl()
		{
			super();
			this.addCommand(USER_LOGIN,LoginCommand);
			this.addCommand(ADD_USER,AddUserCommond);
			this.addCommand(LOAD_ALL_USER,LoadAllUserCommand);
			this.addCommand(LOAD_USER_BYID,LoadUserByIdCommond);
			this.addCommand(DELETE_USER_BYID,DeleteUserByIdCommond);
		}
	}
}